<!--
 * @Author: “1077321622@qq.com” lzr448470520
 * @Date: 2023-11-23 13:48:51
 * @LastEditors: “1077321622@qq.com” lzr448470520
 * @LastEditTime: 2023-11-24 09:25:17
 * @FilePath: \Vue3开发常用插件集合\插件\src\views\imgcropper.vue
 * @Description: 富文本编辑器
-->

<template>
  <div class='content'>
    <Tinymce v-model="content" @input="inputContent"/>
   
    <div v-html="content"></div>
  </div>
</template>

<script setup>
import Tinymce from '../components/tinymce.vue'
import { ref ,watch} from 'vue'
import {useRoute, useRouter} from 'vue-router'
const router = useRouter();

let content = ref('');

const inputContent = (val) => {
  content.value = val;
}



</script>

